package com.qf;

import com.qf.dao.Bookdao;
import com.qf.dao.impl.BookDaoImpl;
import com.qf.entity.Book;
import com.qf.entity.Page;
import com.qf.service.BookService;
import com.qf.service.impl.BookServiceImpl;

import java.util.List;

/**
 * @author Wy
 * @version V1.0
 * @Project day41-3
 * @Package com.qf
 * @Description:
 * @Date 2022/5/14 14:43
 */
public class test {
    public static void main(String[] args) {
        BookDaoImpl bookDao = new BookDaoImpl();
//       List<Book> books = bookDao.selectAll();
//       System.out.println(books);
        BookServiceImpl bookService = new BookServiceImpl();
      //  List<Book> all = bookService.getAll();
//
       // bookService.addBook(new Book(null,"西游记", (double) 3,"无敌","无敌","无敌"));
       // bookDao.deleteBook("1001");
        //bookService.deleteBook("1002");
        //int updatebooks = bookService.updatebooks(new Book(null, "1", (double) 3, "dd", "dd", "d"), "1014");

    }


}
